//
//  OrderTraceListCell.m
//  NtoccShipper
//
//  Created by mac on 2019/12/26.
//  Copyright © 2019 zhuchongjin. All rights reserved.
//

#import "OrderTraceListCell.h"
@interface OrderTraceListCell()
@property (nonatomic,strong) CJLabel *labContent;
@property (nonatomic,strong) CJLabel *labTime;
@property (nonatomic,strong) CJLabel *labStatue;
@end
@implementation OrderTraceListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setCellInfoWithDic:(NSDictionary *)dic isDefault:(BOOL)isDefault{
    
    self.labContent.text = [CJRegular getIsStrEmpty:dic[@"content"]] ? @"":dic[@"content"];
    self.labTime.text =[CJRegular getIsStrEmpty:dic[@"gmtModified"]] ? @"":dic[@"gmtModified"]; //dic[@"gmtModified"];
    if (isDefault) {
        self.labContent.textColor = [UIColor cjMainColorText];
        self.labTime.textColor = [UIColor cjMainColorText];
        self.labStatue.backgroundColor = [UIColor cjMainColorText];
    }else{
        self.labContent.textColor = [UIColor cjSubheadTextColor];
        self.labTime.textColor = [UIColor cjSubheadTextColor];
        self.labStatue.backgroundColor = [UIColor cjLineBackGroundColor];
    }
}

@end
